<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Compiled</title>
    <script src="js/react.js"></script>
    <script src="js/react-dom.js"></script>
    <script src="js/browser.min.js"></script>
</head>
<body>
    <div id="example"></div>

    <script type="text/babel">


        class HelloMessage extends React.Component{
            constructor(props){
                super(props);
            }

            render(){
                return (
                        <div>
                            Hello{this.props.name}{this.props.age}
                        </div>
                );
//                React.createElement('div',null,'Hello',this.props.name,this.props.age);
            }
        }
        ReactDOM.render(
                React.createElement(
                        HelloMessage,
                        {
                            name:'ddd',
                            age:50
                        }
                ),
                document.getElementById('example')
        );
    </script>
</body>
</html>